<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html">
    <rich:column sortBy="#{property}" sortOrder="#{bean.sortOrders[property]}"
                 filterValue="#{bean.filterValues[property]}"
                 filterExpression="#{property}">
        <f:facet name="header">
            <h:commandLink  action="#{bean.toggleSort}"
                    value="#{sortName}#{bean.sortOrders[property] eq 'unsorted' ? '' : (bean.sortOrders[property] eq 'ascending')? '↑':'↓'}">
                <a4j:ajax execute="@this"  render="#{render}"/>
                <f:setPropertyActionListener target="#{bean.sortProperty}" value="#{property}"/>
            </h:commandLink>
        </f:facet>
        <ui:insert name="outText"/>
    </rich:column>
</ui:composition>